Component({
    properties: {
        exchange: {
            type: Object
        },
        wishValue: {
            type: Number,
            value: 0
        }
    },
    data: {},
    methods: {
        sendExchangeId: function() {
            this.triggerEvent("sendExchangeId", {
                id: this.properties.exchange.id
            });
        },
        toIndex: function() {
            wx.switchTab({
                url: "/pages/index/index"
            });
        },
        toTask: function() {
            wx.switchTab({
                url: "/pages/task/task"
            });
        }
    }
});